package com.jmu.bishe.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * House entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "HOUSE", schema = "HUANG")
public class House implements java.io.Serializable {

	private static final long serialVersionUID = 2226806124451348392L;
	private String hid;
	private String address;
	private BigDecimal floor;
	private BigDecimal totalfloor;
	private BigDecimal roomNum;
	private BigDecimal bathroomNum;
	private BigDecimal parlorNum;
	private Double area;
	private int status;
	private String userId;
	private String hname;
	private Double price;
	private BigDecimal year;
	private String decration;
	private Date display_date;
	private String content;

	// Constructors

	/** default constructor */
	public House() {
	}

	/** minimal constructor */
	public House(String hid) {
		this.hid = hid;
	}

	/** full constructor */
	public House(String hid, String address, BigDecimal floor, BigDecimal totalfloor,
			BigDecimal roomNum, BigDecimal bathroomNum, BigDecimal parlorNum,
			Double area, int status, String userId , String hname , Double price , String decration,
			BigDecimal year , String content , Date display_date) {
		this.hid = hid;
		this.address = address;
		this.floor = floor;
		this.totalfloor = totalfloor;
		this.roomNum = roomNum;
		this.bathroomNum = bathroomNum;
		this.parlorNum = parlorNum;
		this.area = area;
		this.status = status;
		this.userId = userId;
		this.hname = hname;
		this.price = price;
		this.decration = decration;
		this.year = year;
		this.content = content;
		this.display_date = display_date;
	}

	// Property accessors
	@Id
	@Column(name = "HID", unique = true, nullable = false, length = 32)
	public String getHid() {
		return this.hid;
	}

	public void setHid(String hid) {
		this.hid = hid;
	}

	@Column(name = "ADDRESS", length = 256)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "FLOOR", precision = 22, scale = 0)
	public BigDecimal getFloor() {
		return this.floor;
	}

	public void setFloor(BigDecimal floor) {
		this.floor = floor;
	}

	@Column(name = "ROOM_NUM", precision = 22, scale = 0)
	public BigDecimal getRoomNum() {
		return this.roomNum;
	}

	public void setRoomNum(BigDecimal roomNum) {
		this.roomNum = roomNum;
	}

	@Column(name = "BATHROOM_NUM", precision = 22, scale = 0)
	public BigDecimal getBathroomNum() {
		return this.bathroomNum;
	}

	public void setBathroomNum(BigDecimal bathrommNum) {
		this.bathroomNum = bathroomNum;
	}

	@Column(name = "PARLOR_NUM", precision = 22, scale = 0)
	public BigDecimal getParlorNum() {
		return this.parlorNum;
	}

	public void setParlorNum(BigDecimal parlorNum) {
		this.parlorNum = parlorNum;
	}

	@Column(name = "AREA", precision = 126, scale = 0)
	public Double getArea() {
		return this.area;
	}

	public void setArea(Double area) {
		this.area = area;
	}

	@Column(name = "STATUS", precision = 22, scale = 0)
	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	@Column(name = "USER_ID", length = 20)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	@Column(name = "HNAME", length = 44)
	public String getHname() {
		return hname;
	}

	public void setHname(String hname) {
		this.hname = hname;
	}
	@Column(name = "TOTALFLOOR", precision = 22, scale = 0)
	public BigDecimal getTotalfloor() {
		return totalfloor;
	}

	public void setTotalfloor(BigDecimal totalfloor) {
		this.totalfloor = totalfloor;
	}
	@Column(name = "PRICE", precision = 126, scale = 0)
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	@Column(name = "YEAR", precision = 22, scale = 0)
	public BigDecimal getYear() {
		return year;
	}
	@Temporal(TemporalType.DATE)
	@Column(name = "DISPLAY_DATE", length = 7)
	public Date getDisplay_date() {
		return display_date;
	}

	public void setDisplay_date(Date display_date) {
		this.display_date = display_date;
	}

	public void setYear(BigDecimal year) {
		this.year = year;
	}
	@Column(name = "DECRATION", length = 10)
	public String getDecration() {
		return decration;
	}

	public void setDecration(String decration) {
		this.decration = decration;
	}
	@Column(name = "CONTENT", length = 256)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}